﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using DataLayer;

namespace ServiceLayer
{
    [ServiceContract]
    public interface IAuctionService 
    {

        [OperationContract]
        void AddArtToAuction(int aucId, int artId);

        [OperationContract]
        void CreateAuction(double minPrice, double minBid, DateTime startDate, DateTime endDate, int artId, int timeInterval, int timeExtend);

        [OperationContract]
        List<Auction> GetAllAuctions();

        [OperationContract]
        void DeleteAuction(int aucId);

        [OperationContract]
        void UpdateAuction(int id, double minPrice, double minBid, DateTime startDate, DateTime endDate, int timeInterval, int timeExtend);
        
        [OperationContract]
        void CreateArtist(string name, string address, string cellphone);

        [OperationContract]
        void DeleteArtist(int id);

        [OperationContract]
        void UpdateArtist(int id, string name, string address, string cellphone);

        [OperationContract]
        List<Artist> SearchArtist(int id);

        [OperationContract]
        void CreateArt(string name, string desc, int artistID, string pic, double buyprice);

        [OperationContract]
        Art SearchArt(int artNo);

        [OperationContract]
        void UpdateArt(int no, int newNo, string name, string desc, int artistID, string pic, double buyprice);

        [OperationContract]
        void DeleteArt(int artNo);

        [OperationContract]
        int Login(String userName, String password);
    }
}
